package com.i2works.smartluolong.web.dal.merchant.dao;

import com.alibaba.fastjson.JSONObject;
import com.i2works.smartluolong.utils.basecommon.BaseCommonDAO;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.web.entity.merchant.MerchantApplyDO;
import com.i2works.smartluolong.web.entity.merchant.MerchantApplyQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商户申请持久层接口
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/7/23 21:03
 */

@Mapper
@Repository("merchantApplyDAO")
public interface IMerchantApplyDAO extends BaseCommonDAO<MerchantApplyQuery, MerchantApplyDO> {

    /**
     * 获取审核人员可管理的申请列表
     */
    List<MerchantApplyDO> queryListByAuditor(MerchantApplyQuery query) throws DAOException;


    /**
     * 获取审核人员可管理的申请列表统计
     */
    Integer queryCountByAuditor(MerchantApplyQuery query) throws DAOException;

    /**
     * 查询报表列表
     */
    List<JSONObject> queryReportList(MerchantApplyQuery query) throws DAOException;

}
